#ifndef COMPILER_ONLINE

#include "header.cpp"

#endif


void Test1()
{
    std::vector<int> v = {1,2,3,4,5,6};
    //定义临时对象,来完成方法调用
    int max = Solution().Max(v);
    if(max == 6)
    {
        std::cout << "Test 1 .... OK" << std::endl;
    }
    else
    {
        std::cout << "Test 1 .... Failed" << std::endl;
    }
    
}

void Test2()
{
    std::vector<int> v = {1,2,3,4,5,6,21,313};
    //定义临时对象,来完成方法调用
    int max = Solution().Max(v);
    if(max == 313)
    {
        std::cout << "Test 2 .... OK" << std::endl;
    }
    else
    {
        std::cout << "Test 2 .... Failed" << std::endl;
    }
}

int main()
{
    Test1();
    Test2();
}






